<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    登录人： <span id="loginUser"></span>
    <script src="jquery"></script>
    <script>
        $.ajax({
            type:"get",
            url:"/user/getLoginUser",
            success: function(userName){
                $("#loginUser").text(userName);
            }
        })
    </script>
</body>
</html>